import axios from 'axios'
import { Toast } from 'vant'

axios.interceptors.request.use((config) => {
    Toast.loading({
        message: '加载中...',
        forbidClick: true,
    });
    return config
})

axios.interceptors.response.use((data) => {
    Toast.clear()
    return data.data.list
})

export default axios